<template>
  <div class="recommend">
    <div v-for="recommendData in recommendDatas" class="recommend-item">
      <a :href="recommendData.link">
      <div>
        <img :src="recommendData.image" alt="">
      </div>
      <div class="title">
        <span>{{recommendData.title}}</span>
      </div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "HomeRecommend",
    props:{
      recommendDatas:{
        type:Array,
        default:function () {

          return []
        }
      }
    }
  }
</script>

<style scoped>

  .recommend{

    display: flex;
    text-align: center;
    font-size: 14px;
    padding-top: 15px;
    background-color: #fff;
  }

  .recommend-item img{

    width: 60px;
    height: 60px;
  }

  .recommend-item{

    flex-grow: 1;
  }

  .recommend-item .title{

    padding: 8px;
  }


</style>
